#pragma once

#include <string>

class LogFile {
public:
	LogFile(const std::string & action, size_t max_size);
	virtual ~LogFile();

	void Write(uint32_t time, uint64_t pid, const std::string & detail);

private:
	FILE * _file;
	std::string _action;
	size_t _max_size;
	int _last_day;
	size_t _writed;
	int _index;
};